package com.quanyan.ic.model;

import com.quanyan.ic.common.model.OrderMessage;
import com.quanyan.ic.protocol.LightCmd;

/**
 * Created by zhuo.shi on 2017/7/13.
 */
public class FailedOrderMessage {

    private LightCmd cmd;

    private OrderMessage orderMessage;

    public FailedOrderMessage() {
    }

    private FailedOrderMessage(OrderMessage orderMessage, LightCmd cmd) {
        this.orderMessage = orderMessage;
        this.cmd = cmd;
    }

    public LightCmd getCmd() {
        return cmd;
    }

    public void setCmd(LightCmd cmd) {
        this.cmd = cmd;
    }

    public OrderMessage getOrderMessage() {
        return orderMessage;
    }

    public void setOrderMessage(OrderMessage orderMessage) {
        this.orderMessage = orderMessage;
    }

    public static FailedOrderMessage build(OrderMessage orderMessage, LightCmd cmd) {
        return new FailedOrderMessage(orderMessage, cmd);
    }
}
